<?php
class TemplateFactory
{
	public function create()
	{
		$configer = ConfigerFactory::create();
		
		$template = $configer->get('config.web:template');
		if($template) return ClassFactory::forName($template);
		
		//default pageContext => BasePageContext.class.php
		return ClassFactory::forName('com.dudulook.base.BaseTemplate');
	}
}
?>